package com.dwj.auto.comment.controller;


import com.dwj.auto.comment.model.vo.MenuInitVo;
import com.dwj.auto.comment.service.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dwjian
 * @since 2020-09-18
 */
@RestController
@RequestMapping("/menu")
public class MenuController extends BaseController {

    @Autowired
    private IMenuService menuService;

    @GetMapping("/init")
    public MenuInitVo initMenu(){
        return menuService.initMenu(getCurrentUser(), getAuthorities());
    }
}
